<template>
  <div class="my-border">
    <slot :row="obj" text="123">
        <p>今天是个好日子</p>
    </slot>
  </div>
</template>

<script>
export default {
    data(){
        return{
            obj:{
                name: 'czh',
                age:18
            }
        }
    }
}
</script>

<style scoped>
.my-border{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 400px;
    height: 400px;
    border: 10px solid #862e1e;
    margin: 0 auto;
    overflow: hidden;
}
</style>